VtInfo


Return information about IXI Visual Tcl

Syntax

VtInfo [ option ]

Description

Returns some information about IXI Visual Tcl.

Options

Note: Only one option may be used at a time with VtInfo

-charm (NA)
Returns 1 if IXI Visual Tcl is running in character mode, otherwise 0.

-colors (NA)
Returns the maximum number of colors that can be displayed on the X Server. This does not mean that you have that many colors free. The character mode environment always returns 2 (foreground and background).

-displayHeight flag (NA)
Returns the height of the display. In character mode it causes the command to return the number of rows for the terminal; in graphical mode it causes the command to return the number of pixels.

-displayWidth flag (NA)
Returns the width of the display. In character mode it causes the command to return the number of columns for the terminal; in graphical mode it causes the command to return the number of pixels.

-version (NA)
Returns the IXI Visual Tcl version.

Example

The following example displays information about IXI Visual Tcl in a dialog box.

set ap [VtOpen info]

set charm [VtInfo -charm]
set version [VtInfo -version]
set colors [VtInfo -colors]
set height [VtInfo -displayHeight]
set width [VtInfo -displayWidth]

set msg "Charm is $charm\nVersion is $version\nNumber of Colors: $colors\nDimension: $width X $height"

set dlog [VtMessageDialog $ap.mess \
          -message $msg ]

VtShow $dlog

VtMainLoop

This code produces the following: